package com.taobao.client.component.templete;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;

/**
 * @author crane.ding
 * @version 1.0 2008-11-21
 * 
 * 页面需定义<meta http-equiv="Content-type" content="text/html; charset=utf-8">
 * @see {@link HTMLTemplateBase}
 */
public class HTMLTemplatePanelX extends HTMLTemplateBase {

	public HTMLTemplatePanelX() {
		super("Loading...");
	}
	
	public void setHtml(String html) {
		html = html.replaceAll("none", "");
		DOM.setInnerHTML(getElement(), html);
		setTemplateContent();
	}

	public void setHtmlElement(Element element) {
		super.setElement(element);
		setTemplateContent();
	}

	public HTMLTemplatePanelX(Element element) {
		setElement(element);
		setTemplateContent();
	}

	public HTMLTemplatePanelX(String html) {
		super(html.replaceAll("none", ""));
		setTemplateContent();
	}

}